.class Lcom/waiqin365/compons/camera/p;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/compons/camera/CameraPreviewActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/compons/camera/p;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 3

    iget-object v0, p0, Lcom/waiqin365/compons/camera/p;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->d:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/compons/camera/p;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->d:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    iget-object v1, p0, Lcom/waiqin365/compons/camera/p;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    iget v1, v1, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->c:I

    if-gt v0, v1, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/compons/camera/p;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->d(Lcom/waiqin365/compons/camera/CameraPreviewActivity;)Ljava/util/ArrayList;

    move-result-object v1

    iget-object v0, p0, Lcom/waiqin365/compons/camera/p;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->b:Ljava/util/ArrayList;

    iget-object v2, p0, Lcom/waiqin365/compons/camera/p;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    iget v2, v2, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->c:I

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/compons/camera/ad;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/ad;->a:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/compons/camera/p;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->d(Lcom/waiqin365/compons/camera/CameraPreviewActivity;)Ljava/util/ArrayList;

    move-result-object v1

    iget-object v0, p0, Lcom/waiqin365/compons/camera/p;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->b:Ljava/util/ArrayList;

    iget-object v2, p0, Lcom/waiqin365/compons/camera/p;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    iget v2, v2, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->c:I

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/compons/camera/ad;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/ad;->a:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/waiqin365/compons/camera/p;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->e(Lcom/waiqin365/compons/camera/CameraPreviewActivity;)Landroid/widget/ImageView;

    move-result-object v0

    const v1, 0x7f020314

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/compons/camera/p;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->d(Lcom/waiqin365/compons/camera/CameraPreviewActivity;)Ljava/util/ArrayList;

    move-result-object v1

    iget-object v0, p0, Lcom/waiqin365/compons/camera/p;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->b:Ljava/util/ArrayList;

    iget-object v2, p0, Lcom/waiqin365/compons/camera/p;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    iget v2, v2, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->c:I

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/compons/camera/ad;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/ad;->a:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/waiqin365/compons/camera/p;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->e(Lcom/waiqin365/compons/camera/CameraPreviewActivity;)Landroid/widget/ImageView;

    move-result-object v0

    const v1, 0x7f020315

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_0
.end method
